import request from "@/utils/request"

export async function queryPointsConfig() {
  return request<Points.Rule[]>('/app/manager/user/score/cfg', {
    data: {},
  })
}

export async function setPointsConfig(params: {cfg: Points.Rule[]}) {
  return request('/app/manager/user/score/cfg/update', {
    data: params,
  })
}
